/*
 * @Author: dfh
 * @Date: 2024-03-20 14:32:14
 * @LastEditors: dfh
 * @Modified By: dfh
 * @describe: 
 */
import http from "@/utils/request";


export function registerAppointBank(data) {
  return http.post({
    url: `/userinfo/saveBank`,
    data
  });
}


export function fetchBankList() {
  return http.get({
      url: `/bankCardIntroduce/queryBankCardList`
  });
}

export function fetchBankInfo(id) {
  return http.get({
      url: `/bankCardIntroduce/queryBankInfo/${id}`
  });
}

export function fetchBankFormInfos(bankId) {
  return http.get({
      url: `/bank/bankCardIntroduce/queryFormInfos/${bankId}`
  });
}

export function queryOpenTypes(bankId) {
  return http.get({
      url: `/bankCardIntroduce/queryOpenTypes/${bankId}`
  });
}

export function queryLocale(id) {
  return http.get({
      url: `/bankCardIntroduce/queryLocale/${id}`
  });
}

export function fetchBankRateAllList() {
  return http.get({
      url: `/api/v1/bank/all/rate/list`
  });
}